package com.ruoyi.merchant.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券套餐对象 merchant_platform_coupon
 *
 * @author dongdong
 * @date 2025-10-24
 */
public class MerchantPlatformCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 套餐ID */
    private Long id;

    /** 指定商户id */
    @Excel(name = "指定商户id")
    private Long merchantId;

    /** 使用停车场id */
    @Excel(name = "使用停车场id")
    private Long parkId;

    /** 停车场名称 */
    @Excel(name = "停车场名称")
    private String parkName;

    /** 套餐名称 */
    @Excel(name = "套餐名称")
    private String couponName;

    /** 面值总额 */
    @Excel(name = "面值总额")
    private BigDecimal faceValue;

    /** 实际售价 */
    @Excel(name = "实际售价")
    private BigDecimal actualPrice;

    /** 折扣率 */
    @Excel(name = "折扣率")
    private BigDecimal discountRate;

    /** 有效期类型（1固定时间 2领取后天数） */
    @Excel(name = "有效期类型", readConverterExp = "1=固定时间,2=领取后天数")
    private Integer validType;

    /** 生效开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 生效结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 有效期天数 */
    @Excel(name = "有效期天数")
    private Long validDays;

    /** 状态（0上架 1下架） */
    @Excel(name = "状态")
    private Integer status;

    /** 使用限制（满?元可使用） */
    @Excel(name = "使用限制")
    private BigDecimal useRule;

    /** 售卖说明 */
    @Excel(name = "售卖说明")
    private String couponDesc;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMerchantId(Long merchantId)
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId()
    {
        return merchantId;
    }
    public void setParkId(Long parkId)
    {
        this.parkId = parkId;
    }

    public Long getParkId()
    {
        return parkId;
    }
    public void setParkName(String parkName)
    {
        this.parkName = parkName;
    }

    public String getParkName()
    {
        return parkName;
    }
    public void setCouponName(String couponName)
    {
        this.couponName = couponName;
    }

    public String getCouponName()
    {
        return couponName;
    }
    public void setFaceValue(BigDecimal faceValue)
    {
        this.faceValue = faceValue;
    }

    public BigDecimal getFaceValue()
    {
        return faceValue;
    }
    public void setActualPrice(BigDecimal actualPrice)
    {
        this.actualPrice = actualPrice;
    }

    public BigDecimal getActualPrice()
    {
        return actualPrice;
    }
    public void setDiscountRate(BigDecimal discountRate)
    {
        this.discountRate = discountRate;
    }

    public BigDecimal getDiscountRate()
    {
        return discountRate;
    }
    public void setValidType(Integer validType)
    {
        this.validType = validType;
    }

    public Integer getValidType()
    {
        return validType;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setValidDays(Long validDays)
    {
        this.validDays = validDays;
    }

    public Long getValidDays()
    {
        return validDays;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setUseRule(BigDecimal useRule)
    {
        this.useRule = useRule;
    }

    public BigDecimal getUseRule()
    {
        return useRule;
    }
    public void setCouponDesc(String couponDesc)
    {
        this.couponDesc = couponDesc;
    }

    public String getCouponDesc()
    {
        return couponDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("merchantId", getMerchantId())
                .append("parkId", getParkId())
                .append("parkName", getParkName())
                .append("couponName", getCouponName())
                .append("faceValue", getFaceValue())
                .append("actualPrice", getActualPrice())
                .append("discountRate", getDiscountRate())
                .append("validType", getValidType())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("validDays", getValidDays())
                .append("status", getStatus())
                .append("useRule", getUseRule())
                .append("couponDesc", getCouponDesc())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
